<?php
namespace Mobile\Controller;

class MovieController extends CommonController
{
    public function index()
    {
        $id = isset($_GET['id']) ? $_GET['id'] : '';
        if ($id === '') {
            $this->redirect('Index/index');
            exit;
        }
        $time = isset($_GET['time']) ? $_GET['time'] : date('md');
        $model = D('Screening');
        $list = $model->getAll($id, $time);
        //var_dump($list);
        $this->assign('list', $list);
        $this->assign('mname', $list[0]['mname']);
        $this->display();
    }

    public function movieinfo()
    {
        $mid = isset($_GET['mid']) ? $_GET['mid'] : '';
        $uid = isset($_GET['uid']) ? $_GET['uid'] : '';
        //var_dump($mid);
        //var_dump($uid);
    }
}